package Chapter02.Homework.H20211110;

import java.util.Calendar;
import java.util.Date;

public class Work001 {

    public static void main(String[] args) {
        Calendar s= Calendar.getInstance();
        s.set(2017,7,12);
        s.add(Calendar.YEAR,5);
        int year=s.get(Calendar.YEAR);
        int month=s.get(Calendar.MONTH);
        int date=s.get(Calendar.DATE);
        System.out.println("失效日期"+year+"/"+month+"/"+date);
    }
}
